package com.finger.hospservice.service;

import com.finger.modelservice.model.hosp.Schedule;
import com.finger.modelservice.vo.hosp.ScheduleOrderVo;
import com.finger.modelservice.vo.order.OrderMqVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService {
    void save(Map<String, Object> paramMap);

    Page<Schedule> pageDepartment(Integer page, Integer size, String hoscode);

    void removeSchedule(String hoscode, String hosScheduleId);

    Map<String, Object> findScheduleRule(Integer page, Integer limit, String hoscode, String demcode);

    List<Schedule> findScheduleDetails(String hoscode, String depcode, String workDate);

    Map<String,Object> getBookingScheduleRule(Integer page, Integer limit, String hoscode, String depcode);

    Schedule findScheduleById(String scheduleId);

    // 供内部使用，根据排班id获取排班订单信息
    ScheduleOrderVo findScheduleOrderVO(String scheduleId);

    // 供rabbitmq是使用，更新可预约数量// 供rabbitmq是使用，更新可预约数量
    void updateSchedule(OrderMqVo orderMqVo);

}
